package string;

import java.util.ArrayList;
import java.util.List;

//String类的静态方法join，博客连接：https://blog.csdn.net/qq_24404723/article/details/86064533
public class join {
    public static void main(String[] args) {
        int[]arr=new int[10];
        String s1=new String("666");
        String s2=String.format("%d",66666);
        char[] ch={'a','b','c'};
        String[]str={"aa","bb"};
        List<String> list=new ArrayList<>();
        list.add("a");
        list.add("b");
        list.add("c");
        String s3=String.join("+",str);
        String s4=String.join("-",list);
        System.out.println("s3:"+s3);
        System.out.println("s4:"+s4);

//        System.out.println(s1);
//        System.out.println(s2);
    }
}
